import axios from '@/utils/request';

export function getOrderPayList(params) {
    return axios.post({
        url: '/order-pay/list',
        data: params
    }).then((res) => {
        return res
    })
}

export function editOrderPay(params) {
    return axios.post({
        url: '/order-pay/edit',
        data: params
    }).then((res) => {
        return res
    })
}

export function deleteOrderPay(params) {
    return axios.post({
        url: '/order-pay/delete',
        data: params
    }).then((res) => {
        return res
    })
}

export function validOrderPay(params) {
    return axios.post({
        url: '/order-pay/valid',
        data: params
    }).then((res) => {
        return res
    })
}

export function closeOrderPay(params) {
    return axios.post({
        url: '/order-pay/close',
        data: params
    }).then((res) => {
        return res
    })
}

export function updateClassOrderPay(params) {
    return axios.post({
        url: '/order-pay/updateClass',
        data: params
    }).then((res) => {
        return res
    })
}

export function updateEnrollTeacherOrderPay(params) {
    return axios.post({
        url: '/order-pay/updateEnrollTeacher',
        data: params
    }).then((res) => {
        return res
    })
}

export function updateUserBasicOrderPay(params) {
    return axios.post({
        url: '/order-pay/updateUserBasic',
        data: params
    }).then((res) => {
        return res
    })
}

export function editNewOrderPay(params) {
    return axios.post({
        url: '/order-pay/editNew',
        data: params
    }).then((res) => {
        return res
    })
}

export function enrollOrderPay(params) {
    return axios.post({
        url: '/order-pay/enroll',
        data: params
    }).then((res) => {
        return res
    })
}

export function loadOrderPay(params) {
    return axios.post({
        url: '/order-pay/load',
        data: params
    }).then((res) => {
        return res
    })
}

export function excelUploadOrderPay(params) {
    return axios.post({
        url: '/order-pay/excelUpload',
        data: params
    }).then((res) => {
        return res
    })
}

